package sg.edu.nus.iss.team2s.jass.gui;

import java.awt.Font;
import java.awt.Frame;
import java.awt.Dimension;
import java.awt.Label;
import java.awt.Rectangle;
import java.awt.TextField;
import java.awt.TextArea;
import java.awt.Button;

public class JobAdvertResponseScreen extends Frame {

	private static final long serialVersionUID = 1L;
	private Label lbl_jobAdvertID = null;
	private Label lbl_jobAdvertTitle = null;
	private Label lbl_email = null;
	private Label lbl_phone = null;
	private Label lbl_CV = null;
	private TextField txt_jobAdvertId = null;
	private TextField txt_jobAdvertTitle = null;
	private TextField txt_email = null;
	private TextField txt_phone = null;
	private TextArea txt_CV = null;
	private Button cmd_apply = null;
	private Button cmd_exit = null;

	/**
	 * This is the default constructor
	 */
	public JobAdvertResponseScreen() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		lbl_CV = new Label();
		lbl_CV.setBounds(new Rectangle(48, 251, 133, 30));
		lbl_CV.setText("CV:");
		lbl_phone = new Label();
		lbl_phone.setBounds(new Rectangle(48, 205, 133, 30));
		lbl_phone.setText("Phone:");
		lbl_email = new Label();
		lbl_email.setBounds(new Rectangle(48, 158, 133, 30));
		lbl_email.setText("Email:");
		lbl_jobAdvertTitle = new Label();
		lbl_jobAdvertTitle.setBounds(new Rectangle(48, 111, 133, 30));
		lbl_jobAdvertTitle.setText("Job Advert Title:");
		lbl_jobAdvertID = new Label();
		lbl_jobAdvertID.setBounds(new Rectangle(48, 64, 133, 30));
		lbl_jobAdvertID.setText("Job Advert ID:");
		this.setLayout(null);
		this.setSize(800, 580);
		this.setTitle("JASS Job Advert Response");

		this.add(lbl_jobAdvertID, null);
		this.add(lbl_jobAdvertTitle, null);
		this.add(lbl_email, null);
		this.add(lbl_phone, null);
		this.add(lbl_CV, null);
		this.add(getTxt_jobAdvertId(), null);
		this.add(getTxt_jobAdvertTitle(), null);
		this.add(getTxt_email(), null);
		this.add(getTxt_phone(), null);
		this.add(getTxt_CV(), null);
		this.add(getCmd_apply(), null);
		this.add(getCmd_exit(), null);
	}

	/**
	 * This method initializes txt_jobAdvertId	
	 * 	
	 * @return java.awt.TextField	
	 */
	private TextField getTxt_jobAdvertId() {
		if (txt_jobAdvertId == null) {
			txt_jobAdvertId = new TextField();
			txt_jobAdvertId.setBounds(new Rectangle(198, 63, 159, 30));
		}
		return txt_jobAdvertId;
	}

	/**
	 * This method initializes txt_jobAdvertTitle	
	 * 	
	 * @return java.awt.TextField	
	 */
	private TextField getTxt_jobAdvertTitle() {
		if (txt_jobAdvertTitle == null) {
			txt_jobAdvertTitle = new TextField();
			txt_jobAdvertTitle.setBounds(new Rectangle(198, 110, 552, 30));
		}
		return txt_jobAdvertTitle;
	}

	/**
	 * This method initializes txt_email	
	 * 	
	 * @return java.awt.TextField	
	 */
	private TextField getTxt_email() {
		if (txt_email == null) {
			txt_email = new TextField();
			txt_email.setBounds(new Rectangle(198, 155, 552, 30));
		}
		return txt_email;
	}

	/**
	 * This method initializes txt_phone	
	 * 	
	 * @return java.awt.TextField	
	 */
	private TextField getTxt_phone() {
		if (txt_phone == null) {
			txt_phone = new TextField();
			txt_phone.setBounds(new Rectangle(198, 205, 159, 30));
		}
		return txt_phone;
	}

	/**
	 * This method initializes txt_CV	
	 * 	
	 * @return java.awt.TextArea	
	 */
	private TextArea getTxt_CV() {
		if (txt_CV == null) {
			txt_CV = new TextArea();
			txt_CV.setBounds(new Rectangle(198, 251, 552, 235));
		}
		return txt_CV;
	}

	/**
	 * This method initializes cmd_apply	
	 * 	
	 * @return java.awt.Button	
	 */
	private Button getCmd_apply() {
		if (cmd_apply == null) {
			cmd_apply = new Button("Apply!");
			cmd_apply.setFont(new Font(null, Font.BOLD, 15));
			cmd_apply.setBackground(java.awt.Color.BLUE);
			cmd_apply.setBounds(new Rectangle(641, 514, 110, 29));
		}
		return cmd_apply;
	}

	/**
	 * This method initializes cmd_exit	
	 * 	
	 * @return java.awt.Button	
	 */
	private Button getCmd_exit() {
		if (cmd_exit == null) {
			cmd_exit = new Button("Cancel");
			cmd_exit.setBackground(java.awt.Color.RED);
			cmd_exit.setBounds(new Rectangle(46, 514, 110, 29));
		}
		return cmd_exit;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
